package simonxianyu.learn.springmybatis.util;

import java.util.ArrayList;
import java.util.List;

/**
 * Implement a pojo for input parameters of jquery datatables.
 * Created by simon on 16/8/18.
 */
public class DataTableInput {
  private Integer draw;
  private Integer start = 0;
  private Integer length = 30;
  private List<DataTableInputColumn> columns;
  private String searchValue;
  private String searchIndex;

  public DataTableInput() {
    columns = new ArrayList<>();
  }

  public void addColumn(DataTableInputColumn col) {
    columns.add(col);
  }

  public Integer getDraw() {
    return draw;
  }

  public void setDraw(Integer draw) {
    this.draw = draw;
  }

  public Integer getStart() {
    return start;
  }

  public void setStart(Integer start) {
    this.start = start;
  }

  public Integer getLength() {
    return length;
  }

  public void setLength(Integer length) {
    this.length = length;
  }

  public List<DataTableInputColumn> getColumns() {
    return columns;
  }

  public void setColumns(List<DataTableInputColumn> columns) {
    this.columns = columns;
  }

  public String getSearchValue() {
    return searchValue;
  }

  public void setSearchValue(String searchValue) {
    this.searchValue = searchValue;
  }

  public String getSearchIndex() {
    return searchIndex;
  }

  public void setSearchIndex(String searchIndex) {
    this.searchIndex = searchIndex;
  }
}
